package com.kaili.pojo.dto.arrive;

import com.kaili.common.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * Created by renzhikun on 18-11-27.
 */
@Data
public class ArriveQueryDTO extends PageRequest {

    @Pattern(regexp = "^[A-Za-z0-9]{0,20}$",message = "配载ID应为[A-Za-z0-9]组成的1-20位字符")
    @ApiModelProperty("配载ID")
    private String operationId;

    @Pattern(regexp = "^[A-Za-z0-9]{0,11}$",message = "车辆ID应为[A-Za-z0-9]组成的1-11位字符")
    @ApiModelProperty("车辆ID")
    private String carId;

    @Pattern(regexp = "^[A-Za-z0-9]{0,11}$",message = "驾驶员ID应为[A-Za-z0-9]组成的1-11位字符")
    @ApiModelProperty("驾驶员ID")
    private String driverId;

    @ApiModelProperty("开始时间")
    private String sendStartTime;

    @ApiModelProperty("结束时间")
    private String sendEndTime;

    @ApiModelProperty("网点")
    private Integer siteId;

    /*
        @NotNull(message = "配载单状态不能为空")
    */
    @ApiModelProperty("配载单状态0-未发/1-在途/2-到件")
    private Integer status;

    @ApiModelProperty("来源,1标示web端,2标示PDA端")
    private Integer sourceType;

    @Pattern(regexp = "^[A-Za-z0-9]{0,30}$",message = "配载单或运单应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("配载单或运单")
    private String stowageOrEwbNo;

    @Pattern(regexp = "^[A-Za-z0-9]{0,30}$",message = "运单应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("运单")
    private String ewbNo;
}
